package fun.chutianshu;

public class Student extends Person {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Student(){
        Person.number++;
    }

    //打印静态类中静态字段的值
    public void Print(){
        System.out.println("当前Person类的实例个数有："+Person.number);
    }
}
